<?php

/**
 * 网站后台路由--网站单页
 */
Route::group(['middleware'=>'adminAuth', 'namespace' => 'Admin', 'prefix' => 'admin/webpage/'],function() {
	//列表
	Route::get('datalist', 'WebpageController@listData');
    Route::get('datatablelist', 'WebpageController@bootstrapTableList');
	//新增
	Route::get('addview', 'WebpageController@addDataView');
	Route::post('addsave', 'WebpageController@toAddData');
	//修改
	Route::get('editview/{id}', 'WebpageController@updateDataView');
	Route::post('editsave/{id}', 'WebpageController@toUpdateData');

});

